<template>
  <div class="header_container">
    <div class="header_img"><img src="../common/img/logo-round.png" /></div>
    <div class="header_search">
      <div>
        <el-input v-model="input" placeholder="搜索 商品名称"></el-input>
        <el-button type="danger" icon="el-icon-search">搜索</el-button>
      </div>
      <div>
        <p>
          <a>自营日满减</a>
          <a>西二女装</a>
          <a> 笔记本电脑</a>
          <a>电子书</a>
          <a>限时秒杀</a>
        </p>
      </div>
    </div>
    <div class="shopping_bag">
      <a><i class="el-icon-shopping-cart-2"></i>&nbsp;&nbsp;我的购物车</a>
    </div>
  </div>
</template>

<script>
export default {
 data() {
    return {
      input: "",
    };
  },
}
</script>

<style scoped>
.header_container{
	position: relative;
	width: 100%;
  height: 140px;
  margin: 0;
  padding: 0;
}
.header_img{
  position:absolute;
width:140px;
height:140px;
top:5px;
left:100px;
border:1px solid lightgray;
border-radius:50%;
}
.header_img>img{
width:100%;
height:100%;
border-radius: 50%;

}
.header_search{
position:absolute;
left:400px;
top:40px;
}
.header_search div{
  display: flex;
  align-items: center;
}
.header_search input{
	padding-left: 10px;
	width: 490px;
	height: 35px;
	font-size: 14px;
	line-height: 35px;
	border: 2px solid #FF0236;
  border-right: none;
	outline: none;
}
.header_search button.el-button.el-button--danger{
  padding: 0;
  width: 60px;
  height: 35px;
	font-size: 18px;
  border-radius: 0;
  outline: none;

  display: flex;
  justify-content: center;
  align-items: center;
}
.header_search>p>a{
	display: inline-block;
	padding: 5px 10px;
	font-size: 12px;
	color: #999;
	cursor: pointer;
}
.header_search>p>a:hover{
	color: red;
}
/*头部的购物车标记区域*/
.header_container>.shopping_bag{
	position: absolute;
	margin-top: 60px;
	right: 120px;
	width: 190px;
	height: 35px;
	text-align: center;
	line-height: 35px;
	font-size: 12px;
	background: #f8f9fa;
	color: red;
	cursor: pointer;
}
.shopping_bag>img{
	display: inline-block;
	margin-left: 5px;
	margin-top: 5px;
	width: 17px;
	height: 17px;
}
.shopping_bag>a{
	color: red;
}
</style>